package chapter7;

public class SumArray {

	public static void main(String[] args) {

		int[] array = { 36, 65, 21, 78, 100, 98, 45, 73, 88, 61 };
		int total = 0;

		for (int counter = 0; counter < array.length; counter++) {
			total += array[counter];
		}

		System.out.printf("Soma dos elementos no Array: %d", total);
	}
}
